import request from '@/utils/request'

export function getMyPaperList(data) {
  return request({
    url: '/identify/UserGetRelateIdentify',
    method: 'post',
    data
  })
}

export function thesis_add(data) {
  return request({
    url: '/identify/addIdentify',
    method: 'post',
    data
  })
}

export function thesis_add2(data) {
  return request({
    url: '/identify/UpdateIdentify',
    method: 'post',
    data
  })
}

export function thesis_delete(IdentifyID) {
  return request({
    url: '/identify/DeleteIdentify',
    method: 'get',
    params: { IdentifyID }
  })
}

export function thesis_commit(identifyID) {
  return request({
    url: '/identify/CommitIdentify',
    method: 'get',
    params: { identifyID }
  })
}

export function get_thesis_author(id) {
  return request({
    url: '/identifyauthor/selectauthor',
    method: 'get',
    params: { id }
  })
}

export function thesis_author_add(data) {
  return request({
    url: '/identifyauthor/addauthor',
    method: 'post',
    data
  })
}

export function thesis_author_edit(data) {
  return request({
    url: '/identifyauthor/updateauthor',
    method: 'post',
    data
  })
}

export function thesis_author_delete(id) {
  return request({
    url: '/identifyauthor/deleteauthor',
    method: 'get',
    params: { id }
  })
}

export function get_thesis_project(identifyID) {
  return request({
    url: '/identifyproject/GetIdentifyProjectByidentifyID',
    method: 'get',
    params: { identifyID }
  })
}

export function thesis_project_add(data) {
  return request({
    url: '/identifyproject/AddIdentifyProject',
    method: 'post',
    data
  })
}

export function thesis_project_edit(data) {
  return request({
    url: '/identifyproject/UpdateIdentifyProjectt',
    method: 'post',
    data
  })
}

export function thesis_project_delete(paperProjectID) {
  return request({
    url: '/identifyproject/RemoveIdentifyProject',
    method: 'get',
    params: { paperProjectID }
  })
}

// 院级审核
export function get_thesis_yuanji(data) {
  return request({
    url: '/identify/CollegeUserGetIdentify',
    method: 'post',
    data
  })
}

export function thesis_pass_yuanji(PID) {
  return request({
    url: '/identify/CollegeCheckPass',
    method: 'get',
    params: { PID }
  })
}

export function thesis_back_yuanji(data) {
  return request({
    url: '/identify/CollegeCheckBack',
    method: 'post',
    data
  })
}

// 校级审核
export function get_thesis_xiaoji(data) {
  return request({
    url: '/identify/SchoolUserGetIdentify',
    method: 'post',
    data
  })
}

export function thesis_pass_xiaoji(identifyID) {
  return request({
    url: '/identify/SchoolPassIdentify',
    method: 'get',
    params: { identifyID }
  })
}

export function thesis_back_xiaoji(data) {
  return request({
    url: '/identify/SchoolBackIdentify',
    method: 'post',
    data
  })
}

// 附件
export function file_add(data) {
  return request({
    url: '/identify/addIdentifyfile',
    method: 'post',
    data
  })
}

export function get_file(id) {
  return request({
    url: '/identify/pageIdentifyfileCondition',
    method: 'get',
    params: { id }
  })
}

export function file_delete(identifyfileID) {
  return request({
    url: '/identify/DeleteIdentifyfile',
    method: 'get',
    params: { identifyfileID }
  })
}
